<?php
Route::group(['prefix' => 'admin/message', 'namespace' => 'App\Http\Controllers\Admin'], function () {
    Route::get('new-msg-count', 'MessageController@getNewMsgCount');
    Route::get('inbox', 'MessageController@getInbox');
    Route::get('drafts', 'MessageController@getDrafts');
    Route::get('outbox', 'MessageController@getOutbox');
    Route::get('trash', 'MessageController@getTrash');
    Route::get('details', 'MessageController@getDetails');
    Route::get('write', 'MessageController@getWrite');
    Route::get('edit', 'MessageController@getEdit');
    Route::get('download-file1', 'MessageController@getDownloadFile1');
    Route::post('save-drafts', 'MessageController@postSaveDrafts');
    Route::post('delete-file1', 'MessageController@postDeleteFile1');
    Route::post('send', 'MessageController@postSend');
    Route::post('inbox-to-trash', 'MessageController@postInboxToTrash');
    Route::post('outbox-to-trash', 'MessageController@postOutboxToTrash');
    Route::post('delete-drafts', 'MessageController@postDeleteDrafts');
    Route::post('delete', 'MessageController@postDelete');
});
